﻿using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using DBUtility;
using gfLibrary;
using IYAKASAPortal.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;
using System.Threading;

namespace IYAKASAPortal.PrintAll
{
    public partial class Print_SQPZ_Empty : System.Web.UI.Page
    {

     
        private ReportDocument document;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              
            }
            BindReportData();
        }



        protected override void OnInit(EventArgs e)
        {

        }

        private void BindReportData()
        {
            string strPathAJ = Server.MapPath("~/rpt/CrystalReport_JDCPZSQ_Empty.rpt");
            document = new ReportDocument();
            document.Load(strPathAJ);
            CRAJ.ReportSource = document;
            CRAJ.DataBind();
            CRAJ.RefreshReport();
        }


        protected override void OnUnload(EventArgs e)
        {
            if (document != null)
            {
                document.Dispose();
            }
            
            base.OnUnload(e);
        }
    }
}